package com.yanqu.road.entity.activity.zhenhuan.secondProcess;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_zhenhuan_second_relation", desc = "甄嬛传第二阶段往来")
public class UserZhenHuanSecondRelationData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(update = true, desc = "对方玩家id")
    private long targetUserId;
    @FieldTypeAnnotation(desc = "加入多少次")
    private int joinAmount;
    @FieldTypeAnnotation(desc = "加入并结算了多少次")
    private int finishAmount;

    public UserZhenHuanSecondRelationData() {
    }

    public UserZhenHuanSecondRelationData(int activityId, long userId, long targetUserId) {
        this.activityId = activityId;
        this.userId = userId;
        this.targetUserId = targetUserId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(long targetUserId) {
        this.targetUserId = targetUserId;
    }

    public int getJoinAmount() {
        return joinAmount;
    }

    public void setJoinAmount(int joinAmount) {
        this.joinAmount = joinAmount;
        setUpdateOption();
    }

    public int getFinishAmount() {
        return finishAmount;
    }

    public void setFinishAmount(int finishAmount) {
        this.finishAmount = finishAmount;
        setUpdateOption();
    }
}
